#include "add.h"
#include <QPainter>

Add::Add()
{
    pict.load(":/pictures/arts/add.png");
}

void Add::paint(QPainter *painter, const QRect &rect) const
{
    painter->save();
    painter->setRenderHint(QPainter::Antialiasing, true);
    painter->setPen(Qt::NoPen);
    QRectF source(0.0, 0.0, 30.0, 30.0);
    painter->drawImage(rect, pict, source);
    painter->restore();
}

QSize Add::sizeHint() const
{
    return pict.size();
}
